/**
 * CommonApi 数据接口请求封装类
 */
class CommonApi {
    /**
    * 接口地址配置
    */
    static UrlCfg = {
        getMenuData: '/api/admin/menu',
        getMainData: '/api/admin/main',
        uploadFile: '/api/admin/uploader/save',
        deleteFile: '/api/admin/uploader/delete',
    }
    /**
     * 返回菜单数据
     */
    static async getMenuData(param) {
        return await vui365.stdAxios(CommonApi.UrlCfg.getMenuData, param, "POST");
    }
    /**
     * 返回运营统计数据
     */
    static async getMainData(param) {
        return await vui365.stdAxios(CommonApi.UrlCfg.getMainData, param);
    }
    /**
     * 上传文件
     */
    static async uploadFile(param) {
        return await vui365.stdAxios(CommonApi.UrlCfg.uploadFile, param);
    }
    /**
     * 删除文件
     */
    static async deleteFile(param) {
        return await vui365.stdAxios(CommonApi.UrlCfg.deleteFile, param, "DELETE");
    }
}